﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BrewXML.Core.Data
{
   public class GRAIN
   {
       #region NAME

       public string NAME { get; set; }

       #endregion

       #region VERSION

       public string VERSION { get; set; }

       #endregion

       #region AMOUNT

       public double AMOUNT { get; set; }

       #endregion

       #region EXTRACT

       public double EXTRACT { get; set; }

       #endregion

       #region COLOR

       public double COLOR { get; set; }

       #endregion

       #region TYPE

       public string TYPE { get; set; }

       #endregion

       #region USE

       public string USE { get; set; }

       #endregion

       #region YIELD

      
       public double YIELD
       {
           get
           {
               return AMOUNT * (EXTRACT - 1.000);
           }
           
       }

       #endregion

       #region HCU

       private double mHCU;
       public double HCU
       {
           get
           {
               return AMOUNT * COLOR;
           }
           
       }

       #endregion

       #region Constructors

        public GRAIN()
        {
            NAME = "New Grain";
            VERSION = "1";
            AMOUNT = 0;
            EXTRACT = 0;
            COLOR = 0;
            TYPE = "Other";
            USE = "Other";
        }

        #endregion
   }
}
